<section class="container my-8">
    <h2 class="text-3xl font-bold mb-6">推荐职位</h2>
    
    <!-- 布局1：带大图的卡片式布局 -->
    <div class="mb-10">
        <h3 class="text-xl font-semibold mb-4">热门推荐</h3>
        <div class="row g-4">
            <!-- 带单张图片的招聘卡片 -->
            <div class="col-lg-6">
                <div class="card h-100 shadow-sm hover:shadow-md transition-shadow">
                    <div class="row g-0">
                        <div class="col-md-4">
                            <img src="https://picsum.photos/400/500?random=1" alt="科技公司办公室环境" class="h-100 w-100 object-cover">
                        </div>
                        <div class="col-md-8">
                            <div class="card-body">
                                <div class="d-flex justify-content-between align-items-start mb-2">
                                    <h5 class="card-title font-bold text-primary">资深前端开发工程师</h5>
                                    <span class="badge bg-success">急聘</span>
                                </div>
                                <p class="card-text text-muted mb-2">阿里巴巴 | 杭州 | 15K-25K·13薪</p>
                                <p class="card-text text-truncate">负责公司核心产品的前端开发，与产品经理和后端工程师紧密合作，打造优质用户体验...</p>
                                
                                <div class="d-flex justify-content-between align-items-center mt-3">
                                    <div class="d-flex align-items-center">
                                        <img src="https://picsum.photos/100/100?random=101" alt="招聘发布者头像" class="rounded-circle me-2" style="width: 30px; height: 30px;">
                                        <span class="text-sm">李招聘</span>
                                    </div>
                                    
                                    <div class="d-flex gap-3 text-sm text-muted">
                                        <span><i class="far fa-eye me-1"></i> 2.3k</span>
                                        <span><i class="far fa-comment me-1"></i> 42</span>
                                    </div>
                                    
                                    <div class="d-flex gap-2">
                                        <button class="btn btn-sm btn-outline-primary like-btn">
                                            <i class="far fa-thumbs-up me-1"></i> 128
                                        </button>
                                        <button class="btn btn-sm btn-outline-secondary save-btn">
                                            <i class="far fa-bookmark me-1"></i> 收藏
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 带多张图片的招聘卡片 -->
            <div class="col-lg-6">
                <div class="card h-100 shadow-sm hover:shadow-md transition-shadow">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-start mb-2">
                            <h5 class="card-title font-bold text-primary">UI/UX设计师</h5>
                            <span class="badge bg-primary">全职</span>
                        </div>
                        <p class="card-text text-muted mb-2">腾讯科技 | 深圳 | 18K-28K·14薪</p>
                        <p class="card-text mb-3">负责社交产品的界面设计和用户体验优化，参与产品设计讨论，输出高质量设计方案...</p>
                        
                        <!-- 多图展示 -->
                        <div class="mb-3">
                            <div class="row g-1">
                                <div class="col-4">
                                    <img src="https://picsum.photos/300/200?random=2" alt="设计作品展示1" class="w-100 h-20 object-cover rounded">
                                </div>
                                <div class="col-4">
                                    <img src="https://picsum.photos/300/200?random=3" alt="设计作品展示2" class="w-100 h-20 object-cover rounded">
                                </div>
                                <div class="col-4">
                                    <img src="https://picsum.photos/300/200?random=4" alt="设计作品展示3" class="w-100 h-20 object-cover rounded">
                                </div>
                            </div>
                        </div>
                        
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="d-flex align-items-center">
                                <img src="https://picsum.photos/100/100?random=102" alt="招聘发布者头像" class="rounded-circle me-2" style="width: 30px; height: 30px;">
                                <span class="text-sm">王设计</span>
                            </div>
                            
                            <div class="d-flex gap-3 text-sm text-muted">
                                <span><i class="far fa-eye me-1"></i> 1.8k</span>
                                <span><i class="far fa-comment me-1"></i> 36</span>
                            </div>
                            
                            <div class="d-flex gap-2">
                                <button class="btn btn-sm btn-outline-primary like-btn">
                                    <i class="far fa-thumbs-up me-1"></i> 95
                                </button>
                                <button class="btn btn-sm btn-outline-secondary save-btn">
                                    <i class="far fa-bookmark me-1"></i> 收藏
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 布局2：无图片的简洁列表布局 -->
    <div class="mb-10">
        <h3 class="text-xl font-semibold mb-4">最新发布</h3>
        <div class="list-group">
            <!-- 无图片招聘项1 -->
            <div class="list-group-item list-group-item-action p-4 hover:bg-light">
                <div class="d-flex justify-content-between align-items-start">
                    <div>
                        <h5 class="mb-1 font-bold">产品经理</h5>
                        <p class="text-muted mb-2">字节跳动 | 北京 | 20K-35K·15薪</p>
                        <p class="mb-0 text-sm">负责短视频产品的功能规划和迭代，分析用户需求，制定产品路线图，推动产品落地...</p>
                    </div>
                    <span class="badge bg-info">3小时前</span>
                </div>
                
                <div class="d-flex justify-content-between align-items-center mt-3">
                    <div class="d-flex align-items-center">
                        <img src="https://picsum.photos/100/100?random=103" alt="招聘发布者头像" class="rounded-circle me-2" style="width: 28px; height: 28px;">
                        <span class="text-sm">张产品</span>
                    </div>
                    
                    <div class="d-flex gap-4 text-sm">
                        <div class="d-flex align-items-center text-muted">
                            <i class="far fa-eye me-1"></i> 1.5k
                        </div>
                        <div class="d-flex align-items-center text-muted">
                            <i class="far fa-comment me-1"></i> 28
                        </div>
                        <button class="text-primary"><i class="far fa-thumbs-up me-1"></i> 76</button>
                        <button class="text-secondary"><i class="far fa-bookmark me-1"></i> 收藏</button>
                    </div>
                </div>
            </div>
            
            <!-- 无图片招聘项2 -->
            <div class="list-group-item list-group-item-action p-4 hover:bg-light">
                <div class="d-flex justify-content-between align-items-start">
                    <div>
                        <h5 class="mb-1 font-bold">后端开发工程师</h5>
                        <p class="text-muted mb-2">美团 | 上海 | 18K-30K·14薪</p>
                        <p class="mb-0 text-sm">负责交易系统的后端开发和维护，优化系统性能，保障系统稳定运行，参与技术方案设计...</p>
                    </div>
                    <span class="badge bg-info">5小时前</span>
                </div>
                
                <div class="d-flex justify-content-between align-items-center mt-3">
                    <div class="d-flex align-items-center">
                        <img src="https://picsum.photos/100/100?random=104" alt="招聘发布者头像" class="rounded-circle me-2" style="width: 28px; height: 28px;">
                        <span class="text-sm">赵开发</span>
                    </div>
                    
                    <div class="d-flex gap-4 text-sm">
                        <div class="d-flex align-items-center text-muted">
                            <i class="far fa-eye me-1"></i> 1.2k
                        </div>
                        <div class="d-flex align-items-center text-muted">
                            <i class="far fa-comment me-1"></i> 21
                        </div>
                        <button class="text-primary"><i class="far fa-thumbs-up me-1"></i> 63</button>
                        <button class="text-secondary"><i class="far fa-bookmark me-1"></i> 收藏</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 布局3：网格布局 -->
    <div>
        <h3 class="text-xl font-semibold mb-4">为你推荐</h3>
        <div class="row g-4">
            <!-- 网格项1：带单图 -->
            <div class="col-md-6 col-lg-4">
                <div class="card h-100 shadow-sm hover:shadow-md transition-shadow">
                    <img src="https://picsum.photos/600/300?random=5" alt="数据分析师工作环境" class="card-img-top" height="160">
                    <div class="card-body">
                        <h5 class="card-title font-bold mb-1">数据分析师</h5>
                        <p class="text-muted text-sm mb-2">百度 | 北京 | 15K-25K</p>
                        <p class="card-text text-sm text-truncate mb-3">负责用户行为数据分析，构建数据模型，为产品优化提供数据支持...</p>
                        
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="d-flex align-items-center">
                                <img src="https://picsum.photos/100/100?random=105" alt="招聘发布者头像" class="rounded-circle me-2" style="width: 24px; height: 24px;">
                                <span class="text-xs">陈数据</span>
                            </div>
                            
                            <div class="d-flex gap-2 text-xs text-muted">
                                <span><i class="far fa-eye me-1"></i> 856</span>
                                <span><i class="far fa-comment me-1"></i> 12</span>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer bg-transparent d-flex justify-content-between">
                        <button class="btn btn-sm btn-outline-primary like-btn">
                            <i class="far fa-thumbs-up me-1"></i> 42
                        </button>
                        <button class="btn btn-sm btn-outline-secondary save-btn">
                            <i class="far fa-bookmark me-1"></i> 收藏
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 网格项2：无图 -->
            <div class="col-md-6 col-lg-4">
                <div class="card h-100 shadow-sm hover:shadow-md transition-shadow">
                    <div class="card-body">
                        <h5 class="card-title font-bold mb-1">人力资源经理</h5>
                        <p class="text-muted text-sm mb-2">京东 | 北京 | 12K-20K</p>
                        <p class="card-text text-sm text-truncate mb-3">负责公司招聘、培训、绩效等人力资源全模块工作，建立和完善人力资源体系...</p>
                        
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="d-flex align-items-center">
                                <img src="https://picsum.photos/100/100?random=106" alt="招聘发布者头像" class="rounded-circle me-2" style="width: 24px; height: 24px;">
                                <span class="text-xs">刘HR</span>
                            </div>
                            
                            <div class="d-flex gap-2 text-xs text-muted">
                                <span><i class="far fa-eye me-1"></i> 632</span>
                                <span><i class="far fa-comment me-1"></i> 9</span>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer bg-transparent d-flex justify-content-between">
                        <button class="btn btn-sm btn-outline-primary like-btn">
                            <i class="far fa-thumbs-up me-1"></i> 28
                        </button>
                        <button class="btn btn-sm btn-outline-secondary save-btn">
                            <i class="far fa-bookmark me-1"></i> 收藏
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 网格项3：多图 -->
            <div class="col-md-6 col-lg-4">
                <div class="card h-100 shadow-sm hover:shadow-md transition-shadow">
                    <div class="p-2">
                        <div class="row g-1">
                            <div class="col-6">
                                <img src="https://picsum.photos/300/200?random=6" alt="市场营销工作内容1" class="w-100 h-75 object-cover rounded">
                            </div>
                            <div class="col-6">
                                <img src="https://picsum.photos/300/200?random=7" alt="市场营销工作内容2" class="w-100 h-37 object-cover rounded mb-1">
                                <img src="https://picsum.photos/300/200?random=8" alt="市场营销工作内容3" class="w-100 h-37 object-cover rounded">
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <h5 class="card-title font-bold mb-1">市场营销专员</h5>
                        <p class="text-muted text-sm mb-2">小米 | 北京 | 10K-18K</p>
                        <p class="card-text text-sm text-truncate mb-3">负责社交媒体运营，策划营销活动，分析活动效果，提升品牌影响力...</p>
                        
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="d-flex align-items-center">
                                <img src="https://picsum.photos/100/100?random=107" alt="招聘发布者头像" class="rounded-circle me-2" style="width: 24px; height: 24px;">
                                <span class="text-xs">孙营销</span>
                            </div>
                            
                            <div class="d-flex gap-2 text-xs text-muted">
                                <span><i class="far fa-eye me-1"></i> 745</span>
                                <span><i class="far fa-comment me-1"></i> 15</span>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer bg-transparent d-flex justify-content-between">
                        <button class="btn btn-sm btn-outline-primary like-btn">
                            <i class="far fa-thumbs-up me-1"></i> 36
                        </button>
                        <button class="btn btn-sm btn-outline-secondary save-btn">
                            <i class="far fa-bookmark me-1"></i> 收藏
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
// 点赞功能
document.querySelectorAll('.like-btn').forEach(btn => {
    btn.addEventListener('click', function() {
        const icon = this.querySelector('i');
        const countSpan = this.childNodes[2].textContent.trim();
        let count = parseInt(countSpan);
        
        if (icon.classList.contains('far')) {
            // 点赞
            icon.classList.remove('far');
            icon.classList.add('fas');
            this.classList.add('bg-primary', 'text-white');
            this.classList.remove('btn-outline-primary');
            this.innerHTML = `<i class="fas fa-thumbs-up me-1"></i> ${count + 1}`;
        } else {
            // 取消点赞
            icon.classList.remove('fas');
            icon.classList.add('far');
            this.classList.remove('bg-primary', 'text-white');
            this.classList.add('btn-outline-primary');
            this.innerHTML = `<i class="far fa-thumbs-up me-1"></i> ${count - 1}`;
        }
    });
});

// 收藏功能
document.querySelectorAll('.save-btn').forEach(btn => {
    btn.addEventListener('click', function() {
        const icon = this.querySelector('i');
        
        if (icon.classList.contains('far')) {
            // 收藏
            icon.classList.remove('far');
            icon.classList.add('fas');
            this.classList.add('bg-secondary', 'text-white');
            this.classList.remove('btn-outline-secondary');
            this.innerHTML = `<i class="fas fa-bookmark me-1"></i> 已收藏`;
        } else {
            // 取消收藏
            icon.classList.remove('fas');
            icon.classList.add('far');
            this.classList.remove('bg-secondary', 'text-white');
            this.classList.add('btn-outline-secondary');
            this.innerHTML = `<i class="far fa-bookmark me-1"></i> 收藏`;
        }
    });
});
</script>

